package cn.tedu.sp09;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;


@EnableZuulProxy
@EnableDiscoveryClient
@SpringBootApplication
public class Sp09ZuulApplication {

    //localhost:6001/item-service/35
    //localhost:3001/item-service/decreaseNumber
    //使用postman，POST发送以下格式数据：
    //[{"id":1, "name":"abc", "number":23},{"id":2, "name":"def", "number":11}]
    //localhost:6001/user-service/7
    //localhost:6001/user-service/7/score?score=100
    //localhost:6001/order-service/123abc
    //localhost:6001/order-service/
    public static void main(String[] args) {
        SpringApplication.run(Sp09ZuulApplication.class, args);
    }
}
